import request from '@/utils/request'

// 查询确认付款附件列表
export function listPayallfile(query) {
  return request({
    url: '/payment/Payallfile/list',
    method: 'get',
    params: query
  })
}

export function cxPayallfile(query) {
  return request({
    url: '/payment/Payallfile/cx',
    method: 'get',
    params: query
  })
}

// 查询确认付款附件详细
export function getPayallfile(id) {
  return request({
    url: '/payment/Payallfile/' + id,
    method: 'get'
  })
}

// 新增确认付款附件
export function addPayallfile(data) {
  return request({
    url: '/payment/Payallfile',
    method: 'post',
    data: data
  })
}

// 修改确认付款附件
export function updatePayallfile(data) {
  return request({
    url: '/payment/Payallfile',
    method: 'put',
    data: data
  })
}

// 删除确认付款附件
export function delPayallfile(id) {
  return request({
    url: '/payment/Payallfile/' + id,
    method: 'delete'
  })
}
